<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <h3>capture用于将页面元素的事件流转换成事件捕获模式，与冒泡方式相反</h3>
    <div id="app" class="divDefault">
        <div id="div1" v-on:click.capture="divHandlerClick">
            <input type="button" value="单击" v-on:click="btnHandlerClick">
        </div>
    </div>
</body>
<script>
    var vm=new Vue({
        el:"#app",
        data:{},
        methods: {
            divHandlerClick:function(){
                alert("我是div标签")
            },
            btnHandlerClick:function(){
                alert("我是按钮")
            }
        },
    })
</script>
</html>